package com.qingcheng.service.goods;

import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;

/**
 * @author lin.jia
 */
public interface UploadService {
    /**
     * 本地上传
     *
     * @param file
     * @param realPath
     * @param filename
     * @return
     */
    String nativeUpload(byte[] file, String realPath, String filename) throws FileNotFoundException;

    /**
     * 通过oss上传
     *
     * @param file
     * @param filename
     * @param folder
     * @return
     */
    String ossUpload(byte[] file, String filename, String folder);
}
